﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WHC.Hotel.BLL;

namespace WHC.Hotel.UI.Report
{
    public partial class FrmStatisticItems : Form
    {
        public List<string> ItemList = new List<string>();

        public FrmStatisticItems()
        {
            InitializeComponent();
        }

        private void FrmStatisticItems_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < this.cbxItems.Items.Count; i++)
            {
                string item = this.cbxItems.GetItemText(this.cbxItems.Items[i]);
                if(ItemList.Contains(item))
                {
                    this.cbxItems.SetItemChecked(i, true);
                }
            }
        }
    }
}
